Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Commit 7ad117a774149593a44ab29b7177d95660485f0d


Parents : 8bb135c
Author : Mark Qvist <mark@unsigned.io>
Date : 2021-05-27T10:50:23+02:00

Added Text UI color mode notice on startup

Changes

1 files changed, 4 insertions(+), 0 deletions(-)


Diff

diff --git a/nomadnet/ui/TextUI.py b/nomadnet/ui/TextUI.py
index 00587a8..502166a 100644
--- a/nomadnet/ui/TextUI.py
+++ b/nomadnet/ui/TextUI.py
@@ -79,6 +79,10 @@ class TextUI:
if intro_timeout > 0:
self.loop.set_alarm_in(intro_timeout, self.display_main)
+
+ # TODO: Probably remove this at some point when better terminal
+ # color capability detection has been implemented
+ RNS.log("Starting Text UI in "+str(colormode)+" color mode. If no UI appears, try adjusting your color settings in "+str(self.app.configdir)+"/config", RNS.LOG_INFO)
self.set_colormode(colormode)


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────